/******************************************************************
 *
 *    tenant, Powered By uyun.cn.
 *
 *    Copyright (c) 2001-2020
 *    https://uyun.cn
 *
 *    Package:     wzg.com.volatilepara
 *
 *    Filename:    RunThread
 *
 *    Description: (用一句话描述该文件做什么)
 *
 *    Copyright:   Copyright (c) 2001-2020
 *
 *    Company:     uyun.cn
 *
 *    @author: 王志刚
 *
 *    @version: 1.0.0
 *
 *    Create at:   2018-01-03 下午5:42
 *
 *    Revision:
 *
 *    2018-01-03 下午5:42
 *        - first revision
 *
 *****************************************************************/
package wzg.com.volatilepara;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * RunThread(这里用一句话描述这个类的作用)
 *
 * @author wangzg
 * @version 1.0.0
 * @create 2018-01-03 下午5:42
 */
public class RunThread extends Thread{

    private boolean flag = true;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public void run() {
        while (isFlag()){
//            synchronized ("asd"){
//
//            }
//            System.out.println("sad");
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//            int i =0;
//            while (i<1000000000){
//                new Object();
//            }
//            Object[] arr = new Object[1000000];
        }
        System.out.println("我出来了");
    }
}
